package org.su.generalmvc.util;

/**
 * 当查找参数名称失败时抛出该异常
 * @author yangchuan
 * CreateTime 2010-7-29 上午09:40:15
 *
 */
public class ParamFoundException extends RuntimeException {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private static String msg = "class:%s 不包含局部变量表信息，请使用编译器选项 javac -g:{vars}来编译源文件。";

	private String clazzName;

	public String getClazzName() {
		return clazzName;
	}

	public ParamFoundException(String clazzName) {
		super(String.format(msg, clazzName));
		this.clazzName = clazzName;
	}

	public ParamFoundException(String clazzName,Throwable e) {
		super(String.format(msg, clazzName),e);
		this.clazzName = clazzName;
	}
}
